import request from '@/utils/request'

// 查询红娘信息列表
export function listMatchmaker(query) {
  return request({
    url: '/matchmaker/matchmaker/list',
    method: 'get',
    params: query
  })
}

// 查询红娘信息详细
export function getMatchmaker(matchmakerId) {
  return request({
    url: '/matchmaker/matchmaker/' + matchmakerId,
    method: 'get'
  })
}

// 新增红娘信息
export function addMatchmaker(data) {
  return request({
    url: '/matchmaker/matchmaker',
    method: 'post',
    data: data
  })
}

// 修改红娘信息
export function updateMatchmaker(data) {
  return request({
    url: '/matchmaker/matchmaker',
    method: 'put',
    data: data
  })
}

// 删除红娘信息
export function delMatchmaker(matchmakerId) {
  return request({
    url: '/matchmaker/matchmaker/' + matchmakerId,
    method: 'delete'
  })
}